package com.sugar.service;

import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author felix
 * @date 2025/7/4 16:41
 */
@EnableScheduling
@Log4j2
@Configuration
public class TestService {

    @Scheduled(cron = "*/2 * * * * *")
    private void output(){
        log.debug("debug..");
        log.info("info...");
        log.error("error");
    }
}
